package lesson7;

public class Demo1 {
    public static void main(String[] args) {
//        Integer num1 = Integer.valueOf(127);
//        Integer num2 = 127;
//        System.out.println(num1 == num2);
        Integer num1 = 100;
        changeValue(num1);
        System.out.println(num1);


        Person person =new Person(20);
        System.out.println(person);
        System.out.println("****************");
        changeValue(person);
        System.out.println(person);
    }

    public static void changeValue(Integer value){
        value = 200;

    }

    public static void changeValue(Person value){
        //value = new Person(30);
        value.setAge(30);

    }
    //1 200
    //2 100
    //3 ?
    //4
    //5 100
    //6 100
    //7 100
    //8 100
    //9 100
    //10 100
    //11 100
    //12 100
    //13 100
    //14 100
    //15 100
    //16 100
    //17 100
}
